package cn.com.connext.scrm.domain.master;

import com.connext.common.domain.UUIDDomain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.ZonedDateTime;

@Entity
@Table(name = "comment_likes")   // 定义数据库表名
public class CommentLikes implements UUIDDomain, Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    @Column(name = "comment_id", nullable = false)
    private String commentId;

    @Column(name = "user_id", nullable = false)
    private String userId;

    @Column(name = "create_time", nullable = false)
    private ZonedDateTime createTime;

    @Column(name = "created_index")
    private Integer createdIndex;

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getCommentId() {
        return commentId;
    }

    public void setCommentId(String commentId) {
        this.commentId = commentId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public ZonedDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(ZonedDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getCreatedIndex() {
        return createdIndex;
    }

    public void setCreatedIndex(Integer createdIndex) {
        this.createdIndex = createdIndex;
    }
}
